package com.guo.springboot.controller;

import com.guo.springboot.cli.service.ProfileService;
import com.guo.springboot.domain.Profile;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Auther: hotlove_linx
 * @Date: 2021/8/6 00:31
 * @Description:
 */
@RestController
@RequestMapping("/profile")
public class ProfileController {

    @Resource
    private ProfileService profileService;

    @GetMapping("/getprofile")
    Profile getProfile() {
        return profileService.getProfile();
    }
}
